package com.sm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sm.entity.*;
import com.sm.utils.PageUtils;
import com.sm.vo.CourseListVo;
import com.sm.vo.StudentVo;
import com.sm.vo.TeacherVo;

import java.util.List;
import java.util.Map;

/**
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-04-06 19:19:08
 */
public interface AdminService extends IService<AdminEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean addStudent(Student student);

    boolean deleteStudent(Integer id);

    List<StudentVo> getAllStudentByPage(Map<String, Object> params);

    boolean addTeacher(Teacher teacher);

    boolean deleteTeacher(Integer id);

    boolean updateTeacher(TeacherVo teacherVo);

    boolean addCourse(CourseListEntity courseList);

    boolean deleteCourse(Integer courseList);

    boolean updateCourse(CourseListEntity courseList);

    List<Teacher> getAllTeachers();

    List<User> getAllAdmin(Map<String, Object> params);

    boolean addAdmin(User user);

    boolean updateAdmin(User user);

    boolean deleteAdmin(Integer id);

    boolean updateStudent(StudentVo studentVo);

    List<TeacherVo> getAllTeachers(Map<String, Object> params);

    List<CourseListVo> getAllCourse(Map<String, Object> params);
}

